Function RegKeyFileValidate% (sFileName$, sValidationCode$, sYourName$, nYourKey As Long, sRegString$, cbMaxStringSize As Integer, peRegistered As Integer)
' Checks whether the specified registration key file is valid for a
' particular application, using the application-specified validation code
' that was generated by RegKeyNewCodeSet(). The RKVALID pointed to by
' peRegistered is set to either RK_REGISTERED or RK_UNREGISTERED,
' indicating whether or not the registration key and registration string
' stored in the registration key file are valid. The sFileName parameter
' may include wildcards. If you have registered RegKey, your own name and
' RegKey registration key should be passed to this function to diable the
' RegKey "unregistered" message.
'
' This function is called from within your application each time it
' executes, in order to determine whether it should operate in registered
' or unregistered mode. This function is used with file-based registration
' keys; compare with RegKeyValidate().
'
' sFileName INPUT: Registration key file name
' sValidationCode INPUT: App's validation code
' sYourName INPUT: Your name (if registered)
' nYourKey INPUT: Your key (if registered)
' sRegString OUTPUT: Registration string
' cbMaxStringSize INPUT: Characters in reg. string